home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 076-100 / 084 / audiotools / audiotools.h < prev    next >
C/C++ Source or Header  |  1995-03-13  |  1KB  |  31 lines

  1. /* audiotools.h */
  2.  
  3. #define StartChannel(c) ControlChannel(c, CMD_START)
  4. #define StopChannel(c)  ControlChannel(c, CMD_STOP)
  5. #define ResetChannel(c) ControlChannel(c, CMD_RESET)
  6. #define FlushChannel(c) ControlChannel(c, CMD_FLUSH)
  7.  
  8. #define  BIG_WAVE          256L   /* size of biggest waveform */
  9. #define  NBR_WAVES         7L     /* number of waves per instrument */
  10. #define  WAVES_TOTAL       1024L  /* alloc size for instrument's waves */
  11.  
  12. #define  DEFAULT_DURATION  500L      /* 500/1000ths of a second default */
  13. #define  AUDBUFFERS        20L      /* iob msg packets before need to allot */
  14. #define  YES               1L
  15. #define  NO                0L
  16.  
  17. /* In a later release, ExtIOB will be defined exactly as IOAudio but
  18.  * with a few more items tacked on at the end.  This minimizes changes
  19.  * to existing routines when we later extend the structure.
  20.  */
  21. #define  ExtIOB        IOAudio
  22.  
  23. /* a few forward declarations */
  24.  
  25. extern struct ExtIOB     *GetIOB();
  26. extern int         FreeIOB();
  27. extern int         GetChannel();
  28. extern int         GetStereoPair();
  29. extern int         InitBlock();
  30. extern struct MsgPort     *CreatePort();
  31.